function getUserPage(params) {
    return $axios({
        url: '/user/page',
        method: 'get',
        params
    });
}

// 起售停售---批量起售停售接口
const userStatusByStatus = (params) => {
    return $axios({
        url: `/user/status`,
        method: 'put',
        params
    })
}

const queryUserById = (id) => {
    return $axios({
        url: `/user/${id}`,
        method: 'get'
    })
}

const editUser = (params) => {
    return $axios({
        url: `/user/edit`,
        method: 'put',
        data: {...params}
    })
}

const addUser = (params) => {
    return $axios({
        url: `/user/save`,
        method: 'post',
        data: {...params}
    })
}

const deleteUser = (params) => {
    return $axios({
        url: `/user`,
        method: 'delete',
        params
    })
}

const queryAddressByUserId = (id) => {
    return $axios({
        url: `/address/list/${id}`,
        method: 'get',
    })
}